package com.ctshk.rpc.order.tour.code;

import com.ctshk.common.constant.ErrCode;

public enum SeriesOrderErrorCode implements ErrCode {
    PEOPLE_LIMIT(60000, "餘位不足"),
    DELETE_PEOPLE_LIMIT(60001, "游客已付款过，不能删除"),
    EDIT_DISCOUNT_LIMIT(60002, "只有审批不通过的记录，才能编辑"),
    DELETE_DISCOUNT_LIMIT(60002, "只有审批不通过的记录，才能删除"),
    DOWN_ORDER_TOURIST_LIMIT(60004, "下单中的游客类型不符"),
    ADD_ORDER_LIMIT(60005, "不允许追位"),
    KEEP_ORDER_LIMIT(60006, "不允许留位"),
    REPEAT_REFUND_INSURANCE_LIMIT(60007, "不允许重复退保险"),
    REPEAT_REFUND_VISA_LIMIT(60008, "不允许重复退签证"),
    REFUND_AMOUNT_LIMIT(60009, "退款金额不能大于实收金额或可退款项金额"),
    STATUS_ERROR(60010, "状态异常"),
    CANCEL_ORDER_LIMIT(60011, "总实收大于0的订单，不能取消"),
    INVALID_CURRENCY_ERROR(60012, "币种不可用"),
    INVALID_BANK_PREFERENCE_ERROR(60013, "银行优惠不可用"),
    CLOSE_OCCUPY_PLACE_ORDER_STATUS_LIMIT(60014, "只有待确定的订单才能关闭占位"),
    EXCEL_ADD_IMPORT_ERROR(60015, "導入錯誤，數據不匹配"),
    PRINT_LIMIT_ERROR(60016, "收据已打印，请核准后重试"),
    NOT_QUIT_RULE_ERROR(60017, "未退团规则"),
    QUIT_ADD_AMOUNT_LIMIT(60018, "退款金額扣款金額之和不能大于实收金额"),
    DISCOUNT_NOT_EFFECTIVE_ERROR(60019, "退款金額扣款金額之和不能大于实收金额"),
    DISCOUNT_NOT_USE_ERROR(60020, "优惠无法兑换"),
    MEMBER_NOT_FOUND_ERROR(60021, "会员信息未找到"),
    MEMBER_USE_POINTS_LIMIT(60022, "使用的积分不能大于可用积分"),
    POINTS_USE_LIMIT(60023, "积分只能使用一次"),
    BUY_INSURANCE_ERROR(60024, "购买保险失败"),
    BUY_INSURANCE_LIMIT(60025, "只能购买保险一次"),
    REFUND_INSURANCE_ERROR(60026, "退保失败"),
    REFUND_NOT_AMOUNT_ERROR(60027, "该项没有可退款金额"),
    REFUND_ERROR(60028, "退款失败"),
    QUIT_ERROR(60028, "退团失败"),
    BUY_ALL_INSURANCE_ERROR(60029, "所有人已购买保险"),
    TRIP_NOT_INSURANCE_ERROR(60030, "该行程不可购买保险"),
    INSURANCE_INVALID_LIMIT(60031, "保单收据不可作废"),
    REFUND_POINTS_LIMIT(60032, "金额换算成积分，不能大于%s积分"),
    COLLECTION_AMOUNT_LIMIT(60033, "當前收款金額不能小於HKD %s（金額）"),
    USE_BANK_PREFERENCE_LIMIT(60034, "當實收為0才能使用银行优惠"),
    EXCEL_ADD_DATE_FORMAT_IMPORT_ERROR(60035, "導入錯誤，日期格式有误"),
    NOT_FOUND_BANK_PREFERENCE_ERROR(60036, "當前銀行卡不符合優惠規則"),
    USE_POINTS_LIMIT(60037, "只有星尚赏会会员才能使用积分"),
    REFUND_AMOUNT_EXIST_LIMIT(60037, "收款后的才能进行退款"),
    CANCEL_ORDER_ERROR(60038, "取消订单失败"),
    POINTS_USE_PROXY_LIMIT(60039, "代理下单不能使用积分"),
    BIND_MEMBER_PROXY_LIMIT(60040, "代理下单不能使用会员信息"),
    COLLECTION_IS_FULL_INFO_LIMIT(60041, "[%s]游客完善信息后才能收款"),
    ADD_NUM_NOT_ENOUGH(60042, "余位数不足，当前剩余 %s"),
    NIGHT_DAY_IS_NULL(60043, "订单预订下单：行程晚数不能为空"),
    ;
    private Integer code;
    private String msg;

    SeriesOrderErrorCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
